package com.etime.yqtsponsor.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.etime.yqtsponsor.dao.ActiveGroupMapper;
import com.etime.yqtsponsor.pojo.ActiveGroup;
import com.etime.yqtsponsor.service.ActiveGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ly
 * @date 2022/7/19 14:49
 */
@Service
public class ActiveGroupServiceImpl implements ActiveGroupService {

    @Autowired
    private ActiveGroupMapper activeGroupMapper;


    /**
     * 通过id查询一条活动组信息
     * @param id
     * @return
     */
    @Override
    public ActiveGroup selectActiveGroupById(Integer id) {
        return activeGroupMapper.selectById(id);
    }

    /**
     * 通过Id删除活动组
     * @param activeId
     * @return
     */
    @Override
    public Integer deleteById(Integer activeId) {
        return activeGroupMapper.deleteById(activeId);
    }

}
